package com.hpjpw.ido.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 企业员工与学生关系对象 ido_student_worker
 * 
 * @author hpj
 * @date 2021-01-08
 */
@ApiModel("StudentWorkerDomain")
public class StudentWorker extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${ID}")
    private Long id;

    /** 学生用户ID */
    @Excel(name = "学生用户ID")
    @ApiModelProperty("学生用户ID")
    private Long studentUserId;

    /** 企业员工用户ID */
    @Excel(name = "企业员工用户ID")
    @ApiModelProperty("企业员工用户ID")
    private Long workerUserId;

    /** 关系生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "关系生成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("关系生成时间")
    private Date datetime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentUserId(Long studentUserId) 
    {
        this.studentUserId = studentUserId;
    }

    public Long getStudentUserId() 
    {
        return studentUserId;
    }
    public void setWorkerUserId(Long workerUserId) 
    {
        this.workerUserId = workerUserId;
    }

    public Long getWorkerUserId() 
    {
        return workerUserId;
    }
    public void setDatetime(Date datetime) 
    {
        this.datetime = datetime;
    }

    public Date getDatetime() 
    {
        return datetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentUserId", getStudentUserId())
            .append("workerUserId", getWorkerUserId())
            .append("datetime", getDatetime())
            .toString();
    }
}
